package org.jeecg.modules.bid.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.bid.entity.BidManagement;

/**
 * @Description: 投标管理表Mapper接口
 * @Author: jeecg-boot
 * @Date: 2025-10-16
 * @Version: V1.0
 */
@Mapper
public interface BidManagementMapper extends BaseMapper<BidManagement> {
    /**
     * 根据采购方案ID获取中标对象
     *
     * @param purchaseId 采购方案ID
     * @return 中标对象
     */
    @Select("SELECT * FROM proc_bid_management WHERE purchase_id = #{purchaseId}")
    BidManagement getBidManagementByPurchaseId(String purchaseId);

}
